package cn.clouds234.enumdemo;

/**
 * 测试枚举类
 *
 * @author wyf
 * @date 2023/2/10 17:20
 */
public enum MyEnum {
    /**
     * tom
     */
    TOM("tom", "1"),
    /**
     * jerry
     */
    JERRY("jerry", "2");

    private String name;
    private String code;

    MyEnum(String name, String code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }
}
